
import { message } from 'ant-design-vue'
// 消息
const Message = (message: string): any => {
  return message
}

// 成功
const successMessage = (messageStr: string): any => {
  return message.success({
    content: () => messageStr,
    class: 'message-class--success',
  })
}
// 普通提示
const infoMessage = (messageStr: string): any => {
  return message.info({
    content: () => messageStr,
    class: 'message-class--info',
  })
}

// 警告
const warnMessage = (messageStr: string): any => {
  return message.warning({
    content: () => messageStr,
    class: 'message-class--warning',
  })
}

// 失败
const errorMessage = (messageStr: string): any => {
  return message.error({
    content: () => messageStr,
    class: 'message-class--error',
  })
}




export { Message, successMessage, warnMessage, errorMessage, infoMessage }
